/**
 * koa入口文件
 * @author xiaoqiang <465633678@qq.com>
 * @created 2018/11/24 23:48:57
 */
const Koa = require('koa')
const bodyParser = require('koa-bodyparser')
const router = require('./router')
const app = new Koa()
// bodyParser解析中间件
app.use(bodyParser())
// 路由中间件
app.use(router.routes())
.use(router.allowedMethods())
// 监听端口6666
app.listen(6666, _ => {
  console.log('webhooks已启动，监听端口6666')
})
